<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="../static/plugins/jquery-easyui-1.5.5.4/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../static/plugins/jquery-easyui-1.5.5.4/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../static/plugins/easyui/common/index.css">
	<link href="../static/plugins/easyui/jquery-easyui-theme/icon.css" rel="stylesheet" type="text/css" />
	<link href="../static/plugins/easyui/icons/icon-all.css" rel="stylesheet" type="text/css" />
	<link href="../static/plugins/easyui/common/other.css" rel="stylesheet" type="text/css" />
	<script src="../webjars/jquery/3.3.1/dist/jquery.js"></script>
	<script type="text/javascript" src="../static/plugins/jquery-easyui-1.5.5.4/jquery.easyui.min.js"></script>
	
	<script type="text/javascript" th:inline="javascript">
	var path = /*[[@{/databaseHandler/}]]*/;
	/*<![CDATA[*/
    var context = /*[[@{/}]]*/;
    /*]]>*/
	//var contextpath="http://localhost:8888/databaseManage/";
	var connectionId;
	var databaseName;
	var tableName;
	$(function(){
		connectionId = $("#connectionId").val();
		databaseName = $("#databaseName").val();
		tableName = $("#tableName").val();		
		 $("#dg2").datagrid({  
		        type: 'GET',  
		        nowrap: false,  
		        striped: true,  
		        fit:true,  
		        width:1024,  
		        height:500,  
		        url:path+"getTableInfoBydatabaseInfo",  
		        pageSize:30,  
		        remoteSort: false,  
		        pagination:false,  
		        rownumbers:true,  
		        singleSelect:true,
		        //toolbar:'#tb2',
		        queryParams:{  
		        	databaseName:databaseName,  
		        	connectionId:connectionId
		        },
		        columns:[
			        [  
			            {field:'TABLE_CAT',title:'表所属数据库',width:160},  
			            {field:'table_name',title:'表名',width:160},
			            {field:'table_type',title:'表类型',width:160},
			            {field:'remarks',title:'表描述',width:160}
			        ]
		        ]
		    });
	})
	
	
	
	</script>
</head>
<body>
 <input type="hidden" id="connectionId" th:value="${connectionId}" >
 <input type="hidden" id="databaseName" th:value="${databaseName}" >
 <input type="hidden" id="tableName"  th:value="${tableName}">
 <input type="hidden" id="objectType" th:value="${objectType}">
<table id="dg2"></table>
<div id="dlg2">
</div>  
<div id="dlgg"   ></div>  
<div id="addRow" ></div>
 
<form id="form2" method="post"  action=""  style="display:none"   >
   <input type="hidden" id="databaseName" name="databaseName" th:value="${databaseName}" >
   <input type="hidden" id="tableName"    name="tableName" th:value="${tableName}">
   <input type="hidden" id="checkedItems" name="checkedItems" >
   <input type="hidden" id="primary_key"  name="primary_key" >
</form>

</body>
</html>